body {
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #5f27cd, #341f97);
    padding: 30px;
    text-align: center;
    color: white;
}

.header h1 {
    margin: 0 0 20px 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.player-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-stats {
    text-align: left;
}

.player-name {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
}

.player-level, .quest-points {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 3px;
}

.quest-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.overview-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-3px);
}

.overview-icon {
    font-size: 2.5em;
    color: #5f27cd;
}

.overview-title {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.overview-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.quest-tabs {
    display: flex;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #d5dbdb;
}

.tab-button.active {
    background: white;
    border-bottom-color: #5f27cd;
    color: #5f27cd;
}

.quest-content {
    min-height: 600px;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.quest-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.refresh-info, .special-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-text, .info-text {
    color: #2980b9;
    font-weight: bold;
}

.refresh-button {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9em;
}

.refresh-button:hover {
    background: #2980b9;
}

.quest-list {
    display: grid;
    gap: 20px;
}

.quest-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #bdc3c7;
}

.quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quest-card.easy {
    border-left-color: #27ae60;
}

.quest-card.normal {
    border-left-color: #f39c12;
}

.quest-card.hard {
    border-left-color: #e74c3c;
}

.quest-card.legendary {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, #fff, #f8f4ff);
}

.quest-card.special {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff, #fffbf0);
    position: relative;
    overflow: hidden;
}

.quest-card.special::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(243, 156, 18, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.quest-card.completed {
    opacity: 0.8;
    background: #f8f9fa;
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quest-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.quest-info {
    flex: 1;
}

.quest-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.quest-difficulty {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.quest-difficulty.easy {
    background: #d5f4e6;
    color: #27ae60;
}

.quest-difficulty.normal {
    background: #fef9e7;
    color: #f39c12;
}

.quest-difficulty.hard {
    background: #fadbd8;
    color: #e74c3c;
}

.quest-difficulty.legendary {
    background: #f4ecf7;
    color: #9b59b6;
}

.quest-rarity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    margin-left: 8px;
}

.quest-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

.quest-status.active {
    background: #e8f8f5;
    color: #27ae60;
}

.quest-status.completed {
    background: #e3f2fd;
    color: #2196f3;
}

.quest-status.claimed {
    background: #f3e5f5;
    color: #9c27b0;
}

.quest-description {
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.quest-lore {
    color: #8e44ad;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 6px;
    border-left: 3px solid #8e44ad;
}

.quest-progress {
    margin-bottom: 15px;
}

.progress-bar {
    background: #ecf0f1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: right;
}

.quest-rewards {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.rewards-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.reward-item.special {
    color: #f39c12;
    font-weight: bold;
}

.reward-item.claimed {
    opacity: 0.7;
    text-decoration: line-through;
}

.reward-icon {
    font-size: 1.2em;
}

.reward-text {
    color: #34495e;
}

.claim-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.claim-button.special {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(243, 156, 18, 0.5); }
    to { box-shadow: 0 0 20px rgba(243, 156, 18, 0.8); }
}

.completed-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 8px;
    color: #5f27cd;
}

.stat-text {
    font-weight: bold;
    color: #2c3e50;
}

.completion-time {
    font-size: 0.8em;
    color: #7f8c8d;
    text-align: right;
}

.quest-shop-section, .achievements-section {
    padding: 30px;
    border-top: 1px solid #ecf0f1;
}

.quest-shop-section h2, .achievements-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.shop-info {
    text-align: center;
    margin-bottom: 25px;
}

.points-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #ffc107;
}

.points-icon {
    font-size: 1.5em;
}

.points-text {
    font-weight: bold;
    color: #856404;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.shop-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-item:hover {
    transform: translateY(-3px);
}

.shop-item.common {
    border-color: #95a5a6;
}

.shop-item.uncommon {
    border-color: #27ae60;
}

.shop-item.rare {
    border-color: #3498db;
}

.shop-item.epic {
    border-color: #9b59b6;
}

.shop-item.legendary {
    border-color: #f39c12;
}

.shop-item .item-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.item-description {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-rarity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

.item-rarity.common {
    background: #95a5a6;
    color: white;
}

.item-rarity.uncommon {
    background: #27ae60;
    color: white;
}

.item-rarity.rare {
    background: #3498db;
    color: white;
}

.item-rarity.epic {
    background: #9b59b6;
    color: white;
}

.item-rarity.legendary {
    background: #f39c12;
    color: white;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.price-icon {
    font-size: 1.2em;
}

.price-text {
    font-weight: bold;
    color: #f39c12;
}

.buy-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.buy-button.disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, #fff, #f0fff4);
    border: 2px solid #27ae60;
}

.achievement-card.locked {
    opacity: 0.6;
    background: #f8f9fa;
}

.achievement-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.achievement-description {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 8px;
}

.achievement-date {
    color: #27ae60;
    font-size: 0.8em;
    font-weight: bold;
}

.achievement-progress {
    color: #3498db;
    font-size: 0.8em;
    font-weight: bold;
}

.achievement-badge {
    font-size: 2em;
    color: #27ae60;
}

.achievement-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ecf0f1;
    border-radius: 0 0 12px 12px;
}

.achievement-progress-bar .progress-fill {
    background: linear-gradient(90deg, #3498db, #2980b9);
    height: 100%;
    border-radius: 0 0 12px 12px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .player-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .quest-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quest-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
    }
    
    .refresh-info, .special-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .quest-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .completed-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .shop-items {
        grid-template-columns: 1fr;
    }
    
    .shop-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
}